/*
 * board_config.c
 *
 * Created: 4.11.2013 20:04:30
 *  Author: Ferda
 */ 

#include "board_config.h"
#include "UART1.h"

#include <avr/pgmspace.h>
#include <avr/wdt.h>

OPTIMIZE_SIZE void board_init()
{
	init_x_axis();
	init_y_axis();
	init_z_axis();
	init_e1_axis();
	init_e2_axis();
	
	#ifdef USE_UART1
		UART1_begin(16);
	#endif
}
//===================================
void loop()
{
	
}
//===================================
__attribute__((noreturn)) int main() 
{
	wdt_disable();
	
	board_init();
	
	UART1_write_string("Ahoj/n/r");
	UART1_write_string_P(PSTR("Ahoj/n/r"));
	
	do {
		loop();
	}while(1);
}